import { reactive } from 'vue'
import { storage } from '@/utils/storage'
interface RecordState {
  limit: number
  offset: number
  sort?: string
  order?: number
  id?: number | undefined
  user_name?: string
  time_start?: number | undefined
  time_end?: number | undefined
}

// 状态管理
export const recordState = reactive<RecordState>({
  limit: 10,
  offset: 0,
  sort: '',
  order: 0,
  id: storage.get('user').user.admin_id,
  user_name: storage.get('user').user.user_name,
  time_start: undefined,
  time_end: undefined
})
